package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.ZcUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 租车用户Mapper接口
 *
 * @author ruoyi
 * @date 2025-04-03
 */
@Mapper
public interface ZcUsersMapper extends BaseMapper<ZcUsers>
{
    /**
     * 查询租车用户
     *
     * @param userId 租车用户主键
     * @return 租车用户
     */
    public ZcUsers selectZcUsersByUserId(Long userId);

    /**
     * 查询租车用户列表
     *
     * @param zcUsers 租车用户
     * @return 租车用户集合
     */
    public List<ZcUsers> selectZcUsersList(ZcUsers zcUsers);

    /**
     * 新增租车用户
     *
     * @param zcUsers 租车用户
     * @return 结果
     */
    public int insertZcUsers(ZcUsers zcUsers);

    /**
     * 修改租车用户
     *
     * @param zcUsers 租车用户
     * @return 结果
     */
    public int updateZcUsers(ZcUsers zcUsers);

    /**
     * 删除租车用户
     *
     * @param userId 租车用户主键
     * @return 结果
     */
    public int deleteZcUsersByUserId(Long userId);

    /**
     * 批量删除租车用户
     *
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZcUsersByUserIds(String[] userIds);


    ZcUsers selectZcUsersByUser(@Param("openId") String openId,@Param("sk") String sk);

}
